package com.bdqn.tsyyds.service.Permission;

import com.bdqn.tsyyds.entity.Permission;
import com.bdqn.tsyyds.repository.PermissionRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PerimssionServicelmp implements PermissionService {
    @Resource
    PermissionRepository permissionRepository;

    @Override
    public List<Permission> finAll() {
        return permissionRepository.findAll();
    }

    @Override
    public Permission savehh(Permission permission) {
        return permissionRepository.save(permission);
    }


}
